<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/* Start of file user.php */
/* Location: ./stories/controllers/user.php */
class User extends CI_Controller {
	
    /* constructor*/
	function __construct(){
		parent::__construct(); /* construct Stories user controller */
    }
	
	/*link to stories/user/index*/
	function index(){
		$this->ws->set('title',lang('stories')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set('right_module',array('side-sponsor2','member-rise','side-comments')); /* Load Right Module Side Jobs*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/index  ws-themes/default/index.php*/
		$this->ws->view('stories');/*Set views stories/views/stories.php*/
	}
	
	/*link to stories/user/categories*/
	function categories(){
		$this->ws->set('title',lang('stories')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set('right_module',array('featured-story','side-categories','side-sponsor','member-rise','featured-club')); /* Load Right Module Side Jobs*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/index  ws-themes/default/index.php*/
		$this->ws->view('categories');/*Set views stories/views/categories.php*/
	}
    
    /*link to stories/user/featured*/
	function featured(){
		$this->ws->set('title',lang('featured')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set('right_module',array('member-popular','member-active')); /* Load Right Module Side Jobs*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/index  ws-themes/default/index.php*/
		$this->ws->view('featured');/*Set views stories/views/featured.php*/
	}

	/*link to stories/user/undiscovered*/
	function undiscovered(){
		$this->ws->set('title',lang('mess_undiscovered')); /*Title Page From ws-include/language/region/message_lang*/
		$this->ws->set('right_module',array('featured-story','side-categories','member-recent','featured-club')); /* Load Right Module Side Jobs*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/index  ws-themes/default/index.php*/
		$this->ws->view('undiscovered');/*Set views stories/views/undiscovered.php*/
	}
    
    /*link to stories/user/hot*/
	function hot(){
		$this->ws->set('title',lang('mess_hot')); /*Title Page From ws-include/language/region/message_lang*/
		$this->ws->set('right_module',array('featured-story','side-readers','member-rise')); /* Load Right Module Side Jobs*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/index  ws-themes/default/index.php*/
		$this->ws->view('hot');/*Set views stories/views/hot.php*/
	}
    
    /*link to stories/user/whats_new*/
	function whats_new(){
		$this->ws->set('title',lang('mess_new')); /*Title Page From ws-include/language/region/message_lang*/
		$this->ws->set('right_module',array('featured-story','side-categories','member-newest','featured-club')); /* Load Right Module Side Jobs*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/index  ws-themes/default/index.php*/
		$this->ws->view('new');/*Set views stories/views/new.php*/
	}
    
    /*link to stories/user/mystories*/
	function mystories(){
		$this->ws->set('title',lang('mess_stories')); /*Title Page From ws-include/language/region/message_lang*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('single');/*Set layout to default/single  ws-themes/default/single.php*/
		$this->ws->view('mystories');/*Set views stories/views/single.php*/
	}
    
    /*link to stories/user/new_story Add to new stories*/
    function new_story(){
        $this->ws->set('title',lang('new_story')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('single');/*Set layout to default/single  ws-themes/default/single.php*/
		$this->ws->view('form-stories');/*Set views stories/views/form-stories.php*/
    }
    
    /*link to stories/user/newchapter Add to new chapter*/
    function new_chapter(){
        $this->ws->set('title',lang('new_story')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('single');/*Set layout to default/single  ws-themes/default/single.php*/
		$this->ws->view('form-stories');/*Set views stories/views/form-stories.php*/
    }  
    
    /*link to stories/user/list*/
	function reading(){
		$this->ws->set('title',lang('my_library')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('single');/*Set layout to default/single  ws-themes/default/single.php*/
		$this->ws->view('list');/*Set views stories/views/list.php*/
	}
    
    /*link to stories/user/story*/
    function story($story=''){
		$this->ws->set('title',lang('story')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set('right_module',array('reading-panel','cover-story','author-story')); /* Load Right Module Side Jobs*/
        $this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/single  ws-themes/default/single.php*/
		$this->ws->view('intro');/*Set views stories/views/list.php*/
	}
    
    /*link to stories/user/story*/
    function story_content($story=''){
		$this->ws->set('title',lang('story')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set('right_module',array('reading-votes','cover-story-content','whois-reading','recommended-story')); /* Load Right Module Side Jobs*/
        $this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/single  ws-themes/default/single.php*/
		$this->ws->view('content');/*Set views stories/views/list.php*/
	}
    
    /*link to stories/user/search*/
    function search($title=''){
		$this->ws->set('title',lang('search')); /*Title Page From ws-include/language/region/global_lang*/
		$this->ws->set('right_module',array('member-rise','featured-club')); /* Load Right Module Side Jobs*/
        $this->ws->set_theme('default');/*Set theme to default theme ws-themes/default*/
		$this->ws->set_layout('index');/*Set layout to default/single  ws-themes/default/single.php*/
		$this->ws->view('search');/*Set views stories/views/list.php*/
	}
      	

}
/* End of file user.php */
/* Location: .stories/controllers/user.php*/